<?php
class Sb_Ctrl
{
    protected $_http;
    protected $_view;

    public function __construct()
    {
        $this->_http = Sb_Http::getInstance();
        $this->_view = Sb_View::getInstance();  
    }

    public function indexAction()
    {
        
    }

    protected function preDispatch()
    {
        
    }

    public function dispatch($actionName)
    {
        $this->preDispatch();
        $this->$actionName();
        $this->postDispatch();
    }

    protected function postDispatch()
    {
        $this->_view->render();
    }
}